export function createTableColumns (options, common = {}) {
  return options.map(([title, dataIndex, option = {}]) => createTableColumn(title, dataIndex, { ...common, ...option }))
}

export function createTableColumn (title, dataIndex, options = {}) {
  return {
    title,
    dataIndex,
    ...options,
  }
}
